package net.yondervision.hrfsp.sdk.esign.domain.request;

import cn.hutool.http.Method;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import net.yondervision.hrfsp.sdk.esign.domain.AbstractESignRequest;
import net.yondervision.hrfsp.sdk.esign.domain.ESignRequest;
import net.yondervision.hrfsp.sdk.esign.domain.request.body.FilesBatchAddWatermarkParamBody;
import net.yondervision.hrfsp.sdk.esign.domain.response.FilesBatchAddWatermarkResponse;
import net.yondervision.hrfsp.sdk.esign.domain.response.SignflowsDocumentsSaveResponse;

/**
 * @author Cash Zhang
 * @version v1.0
 * @since 2019/11/05 16:03
 */
@Data
@Builder
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class FilesBatchAddWatermarkRequest extends AbstractESignRequest implements
    ESignRequest<FilesBatchAddWatermarkResponse> {

  private FilesBatchAddWatermarkParamBody filesBatchAddWatermarkParamBody;

  public FilesBatchAddWatermarkRequest(
      FilesBatchAddWatermarkParamBody filesBatchAddWatermarkParamBody) {
    this.filesBatchAddWatermarkParamBody = filesBatchAddWatermarkParamBody;
    this.setParamBody(this.filesBatchAddWatermarkParamBody);
  }

  @Override
  public String getUrl() {
    return "/files/batchAddWatermark";
  }

  @Override
  public Method getMethodType() {
    return Method.POST;
  }

  @Override
  public Class<FilesBatchAddWatermarkResponse> getResponseClass() {
    return FilesBatchAddWatermarkResponse.class;
  }

}
